#ifndef SINGLETON_H_
#define SINGLETON_H_

#include <string>

class SingleString
{
protected:
	SingleString();

public:
	static SingleString* Instance();

	const std::string* GetString();

private:
	static SingleString* m_singleString;

	std::string m_str;
};

class SingleStringCleaner
{
public:
	~SingleStringCleaner()
	{
		if (SingleString::Instance())
		{
			delete SingleString::Instance();
		}
	}
};

#endif // SINGLETON_H_
